package com.ybkj.o2o.zhuanche;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

@SpringBootApplication
@EnableRabbit
@MapperScan(basePackages = {"com.ybkj.o2o.zhuanche.mapper"})
public class ZhuancheApplication {

  public static void main(String[] args) {
    System.setProperty("org.eclipse.jetty.server.Request.maxFormContentSize","10000000");
    SpringApplication.run(ZhuancheApplication.class, args);
  }

  @Bean
  public RestTemplate restTemplate() {
    return new RestTemplate();
  }
}
